package org.javaboy.demo.controller;

import org.javaboy.demo.model.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {

    @RequestMapping("/user")
    @ResponseBody
    public void addUser(User user) {
        System.out.println("user = " + user);
    }
}
